/**
 * 日志记录实例
 * 
 * @author bian
 * @createDate 2018.3.1
 *
 * @example
 * logger.error("error");
 */

var log4js = require("log4js");
var config = require("../conf/config");

log4js.configure({
    appenders : [
        {type : "console"},
        { type : "file", filename : config.log.toString()}
    ]
});
var logger = log4js.getLogger("fingerprint");

module.exports = logger;

